<?php
namespace App\Traits;

use App\Models\FakeList;

Trait Trait37_38 {

    public function waterAndElectricity()
    {
        $data1 = [
            'name' => '门禁A2 039',
            '设备状态' => '在线',
            '设备编号' => '文本标签',
            '安装位置' => '文本标签',
            '安装日期' => '文本标签',
            '品牌型号' => '文本标签',
        ];
        $data2 = [
            ['name' => '电表A2 001', 'status' => '在线'],
            ['name' => '电表A2 002', 'status' => '离线'],
            ['name' => '电表A2 003', 'status' => '在线'],
            ['name' => '电表A1 001', 'status' => '在线'],
            ['name' => '水表A2 001', 'status' => '在线'],
            ['name' => '水表A2 002', 'status' => '在线'],
            ['name' => '水表A3 001', 'status' => '在线'],
            ['name' => '水表A3 002', 'status' => '在线'],
            ['name' => '水表A3 004', 'status' => '在线'],
        ];
        $data = [
            'detailInfo' => $data1,
            'detailList' => $data2
        ];
        $responseJson = [
            'code' => 200,
            'message' => '',
            'data' => $data
        ];
        return response()->json($responseJson);
    }

}
